package com.simple.structure.composite;

import com.simple.LogUtil;

/**
 * @author simple
 * @version 1.0
 * @date 2018-12-25 16:57
 * @since 1.0
 */
public class Start {
    public static void main(String[] args) {
        Tree tree = new Tree("A");
        TreeNode nodeB = new TreeNode("B");
        TreeNode nodeC = new TreeNode("C");
        //
        nodeB.add(nodeC);
        tree.getRoot().add(nodeB);
        LogUtil.info("build the tree finished!");
    }
}
